package com.tansty.security.controller;

import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.security.RolesAllowed;

/**
 * description:  <br>
 * date: 2021/8/1 15:43 <br>
 * author: ztz <br>
 * version: 1.0 <br>
 */
@RestController
@RequestMapping("/test")
@RolesAllowed({"ADMIN"})
public class TestController {
    @RequestMapping("/t1")
    public String test(){
        return "test";
    }
}
